﻿using System;
using System.Collections.Generic;
using System.Linq;
using Backend.JYD.Model;

namespace Backend.JYD.IDAL
{
	public interface ICodeInfo
	{
        Int64 AddCodeInfo(CodeInfo info);

        bool UpdateCodeInfo(CodeInfo info);

		CodeInfo GetCodeInfoByCodeType(string codeType, string code);

        List<CodeInfo> GetCodeInfoByCodeType(string codeType);

        List<CodeInfo> GetCodeInfo();

        Int64 AddCodeType(CodeType info);

        bool UpdateCodeType(CodeType info);

        CodeType GetCodeTypeByCodeType(string codeType);

        List<CodeType> GetCodeType();
	}
}